import Mongoose from 'mongoose'
import { Movie } from "../../entities/Movie";

export interface IMovie extends Movie, Mongoose.Document { }

export interface IResult<T> {
  code: number
  success: boolean
  data: T | T[] | null
  message: string
}

export interface ISearchResult<T> {
  data: T[]
  curPage: number
  pages: number
  count: number
}